package com.enoram.training2.guice.module;

import org.hibernate.SessionFactory;

import com.enoram.training2.delegate.MessageDelegate;
import com.enoram.training2.delegate.MessageService;
import com.enoram.training2.hibernate.util.HibernateProvider;
import com.google.inject.AbstractModule;

public class DelegateModule extends AbstractModule{

	@Override
	protected void configure() {
		bind(SessionFactory.class).toProvider(HibernateProvider.class);
		
		bind(MessageService.class).to(MessageDelegate.class);
	}
	
}
